package org.jeecg.modules.kc.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: kc_goods
 * @Author: jeecg-boot
 * @Date:   2023-04-18
 * @Version: V1.0
 */
@Data
@TableName("kc_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="kc_goods对象", description="kc_goods")
public class KcGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**关联租户*/
	@Excel(name = "关联租户", width = 15)
    @ApiModelProperty(value = "关联租户")
    private String tenantId;
	/**酒店ID*/
	@Excel(name = "酒店ID", width = 15)
    @ApiModelProperty(value = "酒店ID")
    private String hotelId;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String name;
	/**商品分类Id*/
	@Excel(name = "商品分类Id", width = 15)
    @ApiModelProperty(value = "商品分类Id")
    private String goodType;
	/**商品单位*/
	@Excel(name = "商品单位", width = 15)
    @ApiModelProperty(value = "商品单位")
    private String goodUnit;
	/**条码*/
	@Excel(name = "条码", width = 15)
    @ApiModelProperty(value = "条码")
    private String barCode;
	/**商品规格*/
	@Excel(name = "商品规格", width = 15)
    @ApiModelProperty(value = "商品规格")
    private String spec;
	/**售卖周期*/
	@Excel(name = "售卖周期", width = 15)
    @ApiModelProperty(value = "售卖周期")
    private Integer sellDay;
	/**采购最高价格*/
	@Excel(name = "采购最高价格", width = 15)
    @ApiModelProperty(value = "采购最高价格")
    private BigDecimal maxPrice;
	/**成本价*/
	@Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;
	/**最高库存*/
	@Excel(name = "最高库存", width = 15)
    @ApiModelProperty(value = "最高库存")
    private Integer maxSotck;
	/**最低库存*/
	@Excel(name = "最低库存", width = 15)
    @ApiModelProperty(value = "最低库存")
    private Integer minSotck;
	/**库存预警数*/
	@Excel(name = "库存预警数", width = 15)
    @ApiModelProperty(value = "库存预警数")
    private Integer stockWarning;
	/**是否启用*/
	@Excel(name = "是否启用", width = 15)
    @ApiModelProperty(value = "是否启用")
    private Boolean isEnable;

	@TableField(exist = false)
    @ApiModelProperty(value = "单位名称")
	private String goodsUnitName;

    @TableField(exist = false)
    @ApiModelProperty(value = "分类名称")
    private String goodTypeName;

    @TableField(exist = false)
    private String supplierInGoodsId;
}
